<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
html{height:100%;}
body { background:#1f87c8 url(images/ht_02.jpg) repeat-x; margin:0; padding:0; font-size:13px; color:#333;height:100%
}
div{margin:0 auto;}
.bg{background:url(images/bg_01.jpg) center top no-repeat;width:100%;min-height:100%;_height:100%}
.bg .sr{width:340px; position:relative}
.bg .sr .s1{
	position:absolute;
	left: 99px;
	top: 320px;
}
.bg .sr .s2{
	position:absolute;
	left: 99px;
	top: 356px;
}
.bg .sr .s3{
	position:absolute;
	left: 259px;
	top: 320px;
}
.bg .sr .s1 input,.bg .sr .s2 input{ border:0;width:135px;}
</style>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.md5.js"></script>
   
    <script type="text/javascript">		
		function passwordMd(){
			var pass = document.getElementById("password").value;
			var w = $.md5(pass);
			//alert(w);
			document.getElementById("password").value=w;
		}
	</script>
    

  </head>
  
  <body>
  <div class="bg">
<div class="sr">
    <form action="<%=basePath %>login/login_dologin" id="form1" method="post">
    <div class="s1"><input type="text" name="user.userName" id="userName"></div>
       <div class="s2"><input type="password" name="user.password" id="password" onChange="passwordMd();"><br/></div>
       <div class="s3"><input type="submit" value="登录"/></div>
    </form>
    </div>
</div>
  </body>
</html>
